{extend name="public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="tabs-wrapper">
			<ul class="nav nav-tabs">
				<li >
					<a href="{:url('cashdetail',array('id'=>$id))}">账单详情</a>
				</li>
				<li class="active">
					<a href="{:url('orderlog',array('id'=>$id))}">订单明细</a>
				</li>
			</ul>			
			<div class="tab-content">
				<div class="tab-pane fade in active" id="tab-home">
				<table class="table table-striped table-bordered table-hover responsive">
					<tr>
						<td>订单号</td>
						<td>订单类型</td>
						<td>
							粉丝
						</td>
						<td class="text-center">
							充值金额
						</td>
						<td class="text-center">
							下单时间
						</td>
						<td class="text-center">
							支付时间
						</td>
					</tr>
					{if empty($list)}
					<tr>
							<td class="text-center" colspan="100">没有记录</td>
					</tr>
					{else/}
						{volist name="list" id="item"}
						<tr>
							<td >{$item.out_trade_no}</td>
							<td >{$item['type']==1?"普通充值":"年费VIP会员"}</td>
							<td >{$item.uid|get_username}</td>
							<td >{$item.money}</td>
							<td >{$item.create_time|date='Y-m-d H:i',###}</td>
							<td >{$item.update_time|date='Y-m-d H:i',###}</td>
						</tr>
						{/volist}
					{/if}
					</table>
				</div>
				{$page}
			</div>
		</div>
	</div>
</div>

{/block}